<?php

namespace App\Http\Controllers;

use Interop\Container\ContainerInterface;

class MyController
{
    protected $ci;

    public function __construct(ContainerInterface $ci)
    {
        $this->ci = $ci;
    }

    public function method1($request, $response, $args)
    {
        var_dump('method 1');
    }

    public function method2($request, $response, $args)
    {
        return $response->withStatus(403, 'Forbidden');
        exit;
        var_dump('method 2');
    }

    public function method3($request, $response, $args)
    {
        var_dump('method 3');
    }
}